﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infragistics.Olap.Data;
using Infragistics.Olap.Data.Base;

namespace PivotGridUsingFlatPivotTable.DataSource.Data
{
    public class FlatPivotLevel : Infragistics.Olap.Data.Base.Level
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Level"/> class.
        /// </summary>
        /// <param name="name">The name of the level.</param>
        /// <param name="caption">The caption of the level.</param>
        /// <param name="uniqueName">The unique name of the level.</param>
        /// <param name="description">The description.</param>
        /// <param name="depth">The distance of the level from the root of the level. Root level is zero (0)</param>
        /// <param name="parentHierarchy">The parent hierarchy.</param>
        public FlatPivotLevel(string name, string caption, string uniqueName, string description, int depth, IHierarchy parentHierarchy) :
            base(name, caption, uniqueName, description, depth, parentHierarchy)
        {            
        }

        /// <summary>
        /// Gets or sets the count of all members in the level.
        /// </summary>
        /// <value>The members count.</value>
        public new int MembersCount
        {
            get { return base.MembersCount; }
            set { base.MembersCount = value; }
        }
    }
}
